
clear 
set more off

import delimited ./RawData/parents_edu.csv, case(preserve) 

label define vlR0051400 0 "NONE"  1 "FIRST GRADE"  2 "SECOND GRADE"  3 "THIRD GRADE"  4 "FOURTH GRADE"  5 "FIFTH GRADE"  6 "SIXTH GRADE"  7 "SEVENTH GRADE"  8 "EIGHTH GRADE"  9 "NINTH GRADE"  10 "TENTH GRADE"  11 "ELEVENTH GRADE"  12 "TWELFTH GRADE"  13 "FIRST YEAR COLLEGE"  14 "SECOND YEAR COLLEGE"  15 "THIRD YEAR COLLEGE"  16 "FOURTH YEAR COLLEGE"  17 "FIFTH YEAR COLLEGE"  18 "SIXTH+ YEARS COLLEGE"  96 "ELEMENTARY, YEAR UNSPECIFIED"  97 "HIGH SCHOOL, YEAR UNSPECIFIED"  98 "COLLEGE, YEAR UNSPECIFIED"  93 "KINDERGARTEN"  94 "PRESCHOOL"  95 "NONACADEMIC DEGREE OR DIPLOMA EDUCATIONAL PROGRAM"  99 "GED" 
label values R0051400 vlR0051400

label define vlR0051700 0 "NONE"  1 "FIRST GRADE"  2 "SECOND GRADE"  3 "THIRD GRADE"  4 "FOURTH GRADE"  5 "FIFTH GRADE"  6 "SIXTH GRADE"  7 "SEVENTH GRADE"  8 "EIGHTH GRADE"  9 "NINTH GRADE"  10 "TENTH GRADE"  11 "ELEVENTH GRADE"  12 "TWELFTH GRADE"  13 "FIRST YEAR COLLEGE"  14 "SECOND YEAR COLLEGE"  15 "THIRD YEAR COLLEGE"  16 "FOURTH YEAR COLLEGE"  17 "FIFTH YEAR COLLEGE"  18 "SIXTH+ YEARS COLLEGE"  96 "ELEMENTARY, YEAR UNSPECIFIED"  97 "HIGH SCHOOL, YEAR UNSPECIFIED"  98 "COLLEGE, YEAR UNSPECIFIED"  93 "KINDERGARTEN"  94 "PRESCHOOL"  95 "NONACADEMIC DEGREE OR DIPLOMA EDUCATIONAL PROGRAM"  99 "GED" 
label values R0051700 vlR0051700

rename R0051400 father_edu
rename R0051700 mother_edu

save ./RawData/parents_edu.dta, replace